package com.yuyou.fn.educational.service;

import com.github.wens.framework.service.ISuperService;
import com.github.wens.mybatisplus.plugins.Page;
import com.yuyou.fn.educational.entity.QuestionnaireSetting;
import com.yuyou.fn.educational.vo.NaireSettingQueryVo;
import com.yuyou.fn.educational.vo.NaireSettingVo;

import java.util.List;

/**
 *
 * QuestionnaireSetting 表数据服务层接口
 *
 */
public interface IQuestionnaireSettingService extends ISuperService<QuestionnaireSetting,Long> {
    Page<NaireSettingVo> findPageByQueryVo(NaireSettingQueryVo naireSettingQueryVo, int pageNo, int pageSize);

    NaireSettingVo findOneBySettingId(Long settingId);

    void setUpQuestionnaire(Long settingId,Long questionnaireId);

    void saveOrUpdate(NaireSettingVo naireSettingVo);

    void deleteBySettingId(Long settingId);

    QuestionnaireSetting findByQuestionnaireId(Long questionnaireId);

    List<QuestionnaireSetting> findSettingListByQueryVo(NaireSettingQueryVo naireSettingQueryVo,String ...colunms);

    QuestionnaireSetting findSettingByQueryVo(NaireSettingQueryVo naireSettingQueryVo);
}